package architect;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.TimeUnit;

/**
 * Dubbo消费者启动类
 *
 * @author guanxin
 * @date 2018/4/8 15:59
 */

@SpringBootApplication
public class DubboConsumerApp implements CommandLineRunner {
    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(DubboConsumerApp.class, args);
        TimeUnit.MINUTES.sleep(10);
        System.err.println("服务消费者=============>>>>>>>>>>>>>服务关闭");
    }

    @Override
    public void run(String... strings) throws Exception {
        System.out.println("服务消费者=============>>>>>>>>>>>>>启动完毕");
    }
}
